package com.bric.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.bric.service.DataAccessService;

@Controller
public class DataAccess {
	@Autowired
	private DataAccessService dataAccessService;
	@ResponseBody
	@RequestMapping("/compareVersion")
	public String compareVersion(Long operationId){
		Long id=dataAccessService.compareVersion(operationId);
		if(null!=id){
			return "success";
		}else{
			return "error";
		}
	}
	
}
